home *** CD-ROM | disk | FTP | other *** search
- Short: Quick, non-diff binary file compare
-
- Fcmp compares two binary (or ascii) files to the limit of the shorter.
- Output can be controlled on the command line; by default, fcmp tells
- you the file byte in which the difference occurred, the block number
- (relative to 1), and the block's byte offset (relative to 0). The
- latter two are for patching with NewZAP. Further options will print
- hex codes for the differing bytes, and/or print the character itself
- (not useful on binary files).
-
- Options:
- -v: Print hex codes
- -b: Don't print NewZAP info
- -q: Print only the totals for the scan; no diffs
- -qq: Never print; return non-zero if different
- -a: Print characters that differ
-
-
- Why? An example: I had a program whose menu keyboard equivalents were
- lacking; one commonly-used function had no equivalent. I NewZAPped
- the program to locate the MenuItem structure for that menu item, and
- modified it to carry a keyboard equiv. that I liked. Later, I got a
- binary patchfile for the program. If I had patched it, I could have
- lost the mod I made. So I fcmp'ed the file and its original to locate
- the changes I had made, recorded context information, patched the
- program, and NewZAPped the new file to locate the context and replace
- my modification. There are other uses. Keep it and you'll think of
- one.
-
-
- Fcmp is totally free. I, the author, release it to the public domain,
- along with any liability for damages incurred through its use or
- misuse.
-
- 01-Sep-92
- David Champion
-